(function(angular){

	//创建模块
	var app=angular.module('in_theaters',['ngRoute']);	
	//配置路由规则
	app.config(['$routeProvider',function($routeProvider){
		$routeProvider.when('/in_theaters',{
			templateUrl:'./in_theaters/in_theaters.html',
			controller:'in_theatersController'
		});	
	}]);

	app.controller('in_theatersController',['$scope','$http',function($scope,$http){
		$http.get('./in_theaters/data.json').then(function(res){
			console.log(res);
			$scope.data=res.data;
		});
	}]);
}

)(angular)